<?php

namespace App\Repositories\RBAC;

use App\Repositories\BaseRepository;

/**
 * Interface PermissionRepository.
 *
 * @package namespace App\Repositories;
 */
interface PermissionRepository extends BaseRepository
{
    //
    /**
     * 获取父级菜单 两级
     * User: Zhangxy
     * Date: 2018-08-13
     * @return mixed
     */
    public function getParentMenus();

    /**
     * 获取 根 菜单
     * User: Zhangxy
     * Date: 2018-08-13
     * @return mixed
     */
    public function rootMenus();

    /**
     * 根据路由名称得到 菜单信息
     * @param $route_name
     * User: Zhangxy
     * Date: 2018-08-13
     * @return array
     */
    public function getBreadcrumbs($route_name);

    /**
     * 获取权限名称列表
     * @param $permission
     * User: Zhangxy
     * Date: 2018-08-20
     * @return array
     */
    public function getPermissionNameList($permission);

}
